<!-- #region setup -->
<script lang="ts" setup>
import {BytButtonLoading} from '@byt/components';
const asyncFn = () => {
   return new Promise(resolve => {
        setTimeout(()=>{
            resolve()
        }, 3000)
    }).then(res=>{
      // message.success('异步请求成功')
    })
}
</script>
<!-- #endregion setup -->

<!-- #region first -->
<BytButtonLoading type="primary" :loading="true" @click="asyncFn">确认提交</BytButtonLoading>
<!-- #endregion first -->

<!-- #region second -->
<BytButtonLoading type="primary" :loading="true" @click="asyncFn">
  <template #icon>
    <img src="https://img.yummall.cn/baiyetong/bytComponent/tableSetting.svg" style="width: 32px;height: 32px;color: white"></img>
    </template>
    确认提交
</BytButtonLoading>
<!-- #endregion second -->